package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.SaleStageModifyLogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 销售阶段dao层接口
 *
 * @author haibin.zhang
 * @date 2019-02-13 13:50
 */
@Repository
@Mapper
public interface SaleStageModifyLogDao {

    List<SaleStageModifyLogEntity> findEntitys(@Param("param") Map<String, Object> param);

    SaleStageModifyLogEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    Integer insert(SaleStageModifyLogEntity entity);

    Integer update(SaleStageModifyLogEntity entity);

    void insertBatch(List<SaleStageModifyLogEntity> list);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    Integer deleteBatch(@Param("list") List<SaleStageModifyLogEntity> stageEntityList, @Param("corpid") String corpid);

}
